Optimal. Leaf size=41 \[ -\frac {\tanh ^{-1}\left (\frac {a-b \tan ^2(x)}{\sqrt {a+b} \sqrt {a+b \tan ^4(x)}}\right )}{2 \sqrt {a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {3751, 1262,
739, 212} \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {a-b \tan ^2(x)}{\sqrt {a+b} \sqrt {a+b \tan ^4(x)}}\right )}{2 \sqrt {a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 739
Rule 1262
Rule 3751
Rubi steps
\begin {align*} \int \frac {\tan (x)}{\sqrt {a+b \tan ^4(x)}} \, dx &=\text {Subst}\left (\int \frac {x}{\left (1+x^2\right ) \sqrt {a+b x^4}} \, dx,x,\tan (x)\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{(1+x) \sqrt {a+b x^2}} \, dx,x,\tan ^2(x)\right )\\ &=-\left (\frac {1}{2} \text {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\frac {a-b \tan ^2(x)}{\sqrt {a+b \tan ^4(x)}}\right )\right )\\ &=-\frac {\tanh ^{-1}\left (\frac {a-b \tan ^2(x)}{\sqrt {a+b} \sqrt {a+b \tan ^4(x)}}\right )}{2 \sqrt {a+b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 41, normalized size = 1.00 \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {a-b \tan ^2(x)}{\sqrt {a+b} \sqrt {a+b \tan ^4(x)}}\right )}{2 \sqrt {a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 65, normalized size = 1.59
method | result | size |
derivativedivides | \(-\frac {\ln \left (\frac {2 a +2 b -2 b \left (1+\tan ^{2}\left (x \right )\right )+2 \sqrt {a +b}\, \sqrt {b \left (1+\tan ^{2}\left (x \right )\right )^{2}-2 b \left (1+\tan ^{2}\left (x \right )\right )+a +b}}{1+\tan ^{2}\left (x \right )}\right )}{2 \sqrt {a +b}}\) | \(65\) |
default | \(-\frac {\ln \left (\frac {2 a +2 b -2 b \left (1+\tan ^{2}\left (x \right )\right )+2 \sqrt {a +b}\, \sqrt {b \left (1+\tan ^{2}\left (x \right )\right )^{2}-2 b \left (1+\tan ^{2}\left (x \right )\right )+a +b}}{1+\tan ^{2}\left (x \right )}\right )}{2 \sqrt {a +b}}\) | \(65\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.35, size = 150, normalized size = 3.66 \begin {gather*} \left [\frac {\log \left (\frac {{\left (a b + 2 \, b^{2}\right )} \tan \left (x\right )^{4} - 2 \, a b \tan \left (x\right )^{2} + 2 \, \sqrt {b \tan \left (x\right )^{4} + a} {\left (b \tan \left (x\right )^{2} - a\right )} \sqrt {a + b} + 2 \, a^{2} + a b}{\tan \left (x\right )^{4} + 2 \, \tan \left (x\right )^{2} + 1}\right )}{4 \, \sqrt {a + b}}, -\frac {\sqrt {-a - b} \arctan \left (\frac {\sqrt {b \tan \left (x\right )^{4} + a} {\left (b \tan \left (x\right )^{2} - a\right )} \sqrt {-a - b}}{{\left (a b + b^{2}\right )} \tan \left (x\right )^{4} + a^{2} + a b}\right )}{2 \, {\left (a + b\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tan {\left (x \right )}}{\sqrt {a + b \tan ^{4}{\left (x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 46, normalized size = 1.12 \begin {gather*} \frac {\arctan \left (-\frac {\sqrt {b} \tan \left (x\right )^{2} - \sqrt {b \tan \left (x\right )^{4} + a} + \sqrt {b}}{\sqrt {-a - b}}\right )}{\sqrt {-a - b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\mathrm {tan}\left (x\right )}{\sqrt {b\,{\mathrm {tan}\left (x\right )}^4+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________